<?php


?>
<?= \common\widgets\Asset::widget(['type'=>['summernote']])?>
<style>
    legend {
        width: auto !important;
        border-style: none !important;
    }
    .layui-tab-brief>.layui-tab-title .layui-this a {
        color: #009688 !important;
    }
</style>
<div class="ui-layout-center ui-layout-pane">
    <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse" style="display: inline">
                <div class="layui-card-body">
                    <div class="layui-collapse like-layui-collapse" lay-accordion=""
                         style="border:1px dashed #c4c4c4">
                        <div class="layui-colla-item">
                            <h2 class="layui-colla-title like-layui-colla-title" style="background-color: #fff">操作提示<i
                                    class="layui-icon layui-colla-icon"></i></h2>
                            <div class="layui-colla-content layui-show">
                                <p>*具体请仔细看配置说明；</p>
                            </div>
                        </div>
                    </div>
                </div>
                <form class="form-horizontal" id="form-config-site-site">
                    <fieldset class="layui-elem-field layui-field-title site-title">
                        <legend><a name="use">新增模块</a></legend>
                    </fieldset>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">模块类型：</label>
                        <div class="col-sm-9">
                            <?= \common\widgets\FormInput::widget(['name'=>'radio','extend'=>['class'=>'col-sm-2','name'=>'url','data'=>$downUrlAll,'showname'=>'name','showvalue'=>'value']])?>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">路径：</label>
                        <div class="col-sm-9">
                            <input type="text" name="path" value="<?=$path?>" class="form-control"
                                   autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">替换标识：</label>
                        <div class="col-sm-9">
                            <input type="text" name="template" value="{template}" class="form-control"
                                   autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">模块名称：</label>
                        <div class="col-sm-9">
                            <input type="text" name="name" value="" class="form-control"
                                   autocomplete="off">
                        </div>
                    </div>
                    <fieldset class="layui-elem-field layui-field-title site-title">
                        <legend><a name="use">数据库</a></legend>
                    </fieldset>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">数据库地址：</label>
                        <div class="col-sm-9">
                            <input type="text" name="host" value="127.0.0.1" class="form-control"
                                   autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">数据库端口：</label>
                        <div class="col-sm-9">
                            <input type="text" name="port" value="3306" class="form-control"
                                   autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">数据库名称：</label>
                        <div class="col-sm-9">
                            <input type="text" name="dbname" value="" class="form-control"
                                   autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">数据库账号：</label>
                        <div class="col-sm-9">
                            <input type="text" name="username" value="" class="form-control"
                                   autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">数据库密码：</label>
                        <div class="col-sm-9">
                            <input type="text" name="password" value="" class="form-control"
                                   autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">表前缀：</label>
                        <div class="col-sm-9">
                            <input type="text" name="tablePrefix" value="" class="form-control"
                                   autocomplete="off">
                        </div>
                    </div>
                    <fieldset class="layui-elem-field layui-field-title site-title">
                        <legend><a name="use">管理员</a></legend>
                    </fieldset>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">账号：</label>
                        <div class="col-sm-9">
                            <input type="text" name="adminusername" value="" class="form-control"
                                   autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">密码：</label>
                        <div class="col-sm-9">
                            <input type="text" name="adminpassword" value="" class="form-control"
                                   autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group text-center mt20">
                        <a href="javascript:;" class="btn btn-success btn-mid b5submit_btn"
                           data-target="form-config-site-site" data-url="<?=\yii\helpers\Url::to(['mo'])?>" data-title="确定提交平台设置">保存</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<?php $this->beginBlock('script'); ?>
<script>

</script>
<?php $this->endBlock(); ?>
